package cz.cuni.mff.ufal.volk.langr;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

import cz.cuni.mff.ufal.volk.services.LanguageRecognizerExtended.Hypothesis;

/**
 *
 * @author Bartłomiej Etenkowski
 */
public class SubstitutionCipherLanguageHypothesis extends Hypothesis implements Serializable {
  private static final long serialVersionUID = -3824097353496927352L;

  public SubstitutionCipherLanguageHypothesis(String languageId, double rating) {
    super(languageId, rating);
  }

  /** The substitution table. */
  private final Map<Character, Character> substitutions = new HashMap<Character, Character>();

  public Map<Character, Character> getSubstitutionTable() {
    return substitutions;
  }

  public void setSubstitutionTable(Map<Character, Character> substitutions) {
    this.substitutions.clear();
    this.substitutions.putAll(substitutions);
  }
}
